﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Practices.Composite.Events;
using Silverlight.Weblog.Client.DAL.Events;
using Silverlight.Weblog.Common.IoC;

namespace Silverlight.Weblog.Client.DAL.Services
{
    public class BlogPostSearchService : IBlogPostSearchService
    {
        #region Implementation of IServiceService

        public void BeginBlogPostStringTermSearch(string SearchTerm, string Username)
        {
            IoC.Get<IEventAggregator>().GetEvent<SearchTermEvent>().Publish(new SearchData(SearchTerm, Username));

            // TODO: Actually query the server
        }

        #endregion
    }
}
